cmake_minimum_required(VERSION 2.6)
add_definitions( -D_UNICODE )
add_definitions( -DUNICODE )

#todo: remove these(?):
add_definitions( -D_CRT_SECURE_NO_WARNINGS )
add_definitions( -D_CRT_NON_CONFORMING_SWPRINTFS )

project(openfms)
include_directories(${CMAKE_SOURCE_DIR}/src)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

#
# CMAKE SETUP
#
# 1. Use my own FindXXX.cmake files
# 2. run my cmake macros
#
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH} ${CMAKE_ROOT}/Modules) 
include (cmake/ConfigureOgre.cmake)


#TODO: 
SET( MY_OUTPUT_DIR ${EXECUTABLE_OUTPUT_PATH}/Debug )

add_subdirectory(src)
   
enable_testing()
add_definitions( -DMAKE_TEST )
add_subdirectory(testing)





